//package com.tsk.state.test;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.statemachine.persist.DefaultStateMachinePersister;
//import org.springframework.statemachine.persist.StateMachinePersister;
//
///**
// * @author: 黄嘉振
// * @create: 2023/5/25 14:35
// * @description:
// **/
////@Configuration
//public class PersistConfig {
//
//    @Autowired
//    private MyStateMachinePersist myStateMachinePersist;
//
//    /**
//     * 注入StateMachinePersister对象
//     *
//     * @return
//     */
//    @Bean(name="orderMemoryPersister")
//    public StateMachinePersister<OrderStatus, OrderStatusChangeEvent, String> getPersister() {
//        return new DefaultStateMachinePersister<>(myStateMachinePersist);
//    }
//
//
//}
